<?php
$dt = new DataTable(constant('DB_TABLE_ARTICLE'));
$GLOBALS['PAGE_ROW_DATA'] = $dt->get(intval($_REQUEST['id']));

$GLOBALS['PAGE_DATA_MEM_NAME'] = SessionUtil::getVar(constant('SESSION_KEY_MEM_DISPLAY_NAME'));

$dt_image =  new DataTable(constant('DB_TABLE_ARTICLE_IMAGE'));
$db_row = $dt_image->get_row(sprintf("`article_id`=%d and `type`=2",$GLOBALS['PAGE_ROW_DATA']['id']));
$GLOBALS['PAGE_DATA_IMG_PATH'] = 'article/'.$db_row['path'];
?>